package com.xiangshizhineng.tianzhangzhi.app.model.response;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.xiangshizhineng.tianzhangzhi.app.common.base.BaseEntity;
import com.xiangshizhineng.tianzhangzhi.app.utils.LongJsonSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Administrator
 * @Desc
 * @date 2022/1/11 19:36
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "事件附件表")
@TableName("tz_event_file")
public class EventFileResponse extends BaseEntity implements Serializable {

    /**
     * 附件名称
     */
    @ApiModelProperty(value = "附件名称")
    private String fileName;
    /**
     * 附件路径
     */
    @ApiModelProperty(value = "附件路径")
    private String filePath;
    /**
     * 事件id
     */
    @ApiModelProperty(value = "事件id")
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long eventId;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private Date createTime;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private Date updateTime;
    /**
     * 事件图片类型（0上报事件上传图片，1解决事件上传图片）
     */
    @ApiModelProperty(value = "事件图片类型（0上报事件上传图片，1解决事件上传图片）")
    private String picType;

}
